#ifndef MY_WIFI_H
#define MY_WIFI_H

#include <Arduino.h>
#include <SPIFSS/my_spifss.h>
#include <WiFi.h>
#include <WiFiMulti.h>
#include <DNSServer.h>
#include <ArduinoJson.h>

#if ARDUINO_USB_CDC_ON_BOOT==1
#define Serial Serial0
#endif

#define WIFI_EN 48

uint8_t WiFi_Init();
uint8_t ConnectWiFi(String ssid,String password);
uint8_t ConnectWiFi();
bool WiFiConnectionDector();
void WiFi_OpenAPWithDNS();

JsonDocument* Wifi_GetSavedAps();

uint8_t wifi_return_status();


#endif